﻿/*
 * 常客相关的零散方法
 */
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Text;
using EZCRS.HCMS.Bll.userinfo;
using EZCRS.HCMS.Bll;


namespace EZCRS.HCMS.myajax
{
    public class OtherUtils:MainBase
    {
        [AjaxPro.AjaxMethod(AjaxPro.HttpSessionStateRequirement.ReadWrite)]
        public string save_userlevel(string levellist)
        {
            string restr = "0";
            int i = 0;
            string[] levels = levellist.Split(',');
            if (levels.Length != 0)
            {
                Blluser adms = new Blluser();
                foreach (string str in levels)
                {
                    if (CFun.IsNumber(str))
                    {
                        i++;
                        adms.savelevelsort(Convert.ToInt32(str), i);
                    }
                }
                restr="1";
            }

            return restr;
        }
    }
}
